#ifndef ERRORCORRECTOR_H
#define ERRORCORRECTOR_H

#include <iostream>
#include <vector>

#include "rsdecode.h"

using namespace std;

class errorCorrector
{
public:
    errorCorrector();
    vector<int> correctDataBlocks(vector<int> blocks, int version, int errorCollectionLevel, int dataCapacity);
private:


    int getNumRSBlocks(int version, int errorCollectionLevel);
    int getNumErrorCollectionCode(int version, int errorCollectionLevel);
};

#endif // ERRORCORRECTOR_H
